import request from '@/utils/request'

// 电箱名称列表
export function getnameList (query) {
  return request({
    url: '/business/electricityBox/namelist',
    method: 'get',
    params: query
  })
}
// 设备管理列表
export function getlakeDeviceList (query) {
  return request({
    url: '/business/lakeDevice/list',
    method: 'get',
    params: query
  })
}
// 请求设备详情
export function getnameChildren (id) {
  return request({
    url: '/business/lakeDevice/' + id,
    method: 'get'
  })
}
// 编辑设备
export function UpdatelakeDevice (data) {
  return request({
    url: '/business/lakeDevice',
    method: 'put',
    data: data
  })
}
// 新增设备
export function CreatedlakeDevice (data) {
  return request({
    url: '/business/lakeDevice',
    method: 'post',
    data: data
  })
}
// 修改上下线状态
export function UpdateeditStatus (data) {
  return request({
    url: '/business/lakeDevice/editStatus',
    method: 'put',
    data: data
  })
}